
%\documentclass[letterpaper,12pt]{article}
%\usepackage[x11names,rgb]{xcolor}
%\usepackage{tikz}
%\usetikzlibrary{snakes}
%\usetikzlibrary{arrows}
%\usetikzlibrary{shapes}
%\usetikzlibrary{backgrounds}
%\usepackage{amsmath}
%\oddsidemargin 0in
%\evensidemargin 0in
%\topmargin 0in
%\headheight 0in
%\headsep 0in
%\textheight 9in
%\textwidth 6.5in
%\begin{document}
%\pagestyle{empty}
%\vspace*{\fill}
%\begin{center}
\documentclass{article}
 
\usepackage[pdftex,active,tightpage]{preview}
\usepackage{tikz}
\usetikzlibrary{snakes}
\usetikzlibrary{arrows}
\makeatletter
 
\begin{document}
\begin{preview}
	%%
	\begin{tikzpicture}[scale=4.0]
	
	\draw (0,0) rectangle +(1,1);
	
	\draw (1.2,0) rectangle +(1,1);
	
	\draw[fill=orange] (0.45,0) rectangle +(0.1,1);
	\draw[fill=orange] (1.65,0) rectangle +(0.1,1);
	\draw[fill=orange] (1.2,0.45) rectangle +(1,0.1);
	\draw[fill=violet!70] (1.65,0.45) rectangle +(0.1,0.1);
	
	\draw[thick, red] (0.5,0) -- +(0,1);
	\draw[thick, red] (1.7,0) -- +(0,1);
	\draw[thick, red] (1.2,0.5) -- +(1,0);
	
	\draw[thick, red] (2.3,0.95) -- +(0.1,0);
	\draw[fill=orange] (2.3,0.55) rectangle +(0.1,0.1);
	\draw[fill=violet!70] (2.3,0.2) rectangle +(0.1,0.1);
	
	\draw (2.9,0.87) node[above] {{Inter-processor}};
	\draw (2.9,0.93) node[below] {{boundaries}};
	
	\draw (2.9,0.52) node[above] {{Boundary cells}};
	\draw (2.9,0.58) node[below] {{along edges}};
	
	\draw (2.9,0.17) node[above] {{Boundary cells}};
	\draw (2.9,0.23) node[below] {{on corners}};
	
	\end{tikzpicture}%%
\end{preview}
\end{document}

%\end{center}
%\vspace*{\fill}
%\end{document}

    	